import request from "@/utils/request";


// 上传接口
export function upload(file) {
    return request({
        url: "/covid/api/uploadFile",
        method: "post",
        headers: {
            "content-type": "multipart/form-data"
        },
        data: file
    });
}

// 提交
export function submitQuery(query) {
    return request({
        url: "/covid/api/commit",
        method: "post",
        data: query
    });
}

// 下载图片
export function downloadImg(query) {
    return request({
        url: "/covid/api/downLoadFile",
        method: "get",
        data: query
    });
}

export function getArea() {
    return request({
        url: "https://api.map.baidu.com/location/ip?ak=oAGnsjiUT6H3DuYbCVGlt11OsYsYekOn",
        method: "get",
    });
}